<?php
include_once $config ['client_theme_path'] . $config ['client_theme'] . '/header.php';
?>
<div id="b">
    <article>
        <?php
        $cat = $cate->get_cate_by_title($config['link']);
        if ($cat != false) {
            if ($cat['cat_active'] == 1) {
          
                
                    $all_article = $cate->get_all_articles($cat['id']);
                    while ($row = $db->fetch_array($all_article['rsArticles'])) {
                        ?>
                        <h3><a class="title" href="/<?php echo $row['link']; ?>.html" title="<?php echo viewTitleLink($row['title']); ?>"><?php echo $row['title']; ?></a></h3>
                        <?php if (trim($row['image']) != '') { ?>
                            <img src="<?php echo createThumb($row['image']); ?>" alt="<?php echo $row['title']; ?>"/>
                            <?php
                        }
                        ?>
                        <h2><?php echo cutString($row['short_description'], 200); ?></h2>
                        <?php
                    }
                
                ?>
                <div class="panaging">
                    <ul class="panation">
                        <?php
                        echo paging($config ['page'], $all_article['totalPages'], $config['link']);
                        ?>
                    </ul>
                </div>
                <?php
            }
        }
        ?>

    </article>

    <?php include_once $config ['client_theme_path'] . $config ['client_theme'] . '/right.php'; ?>

</div>
<!-- END CONTAINER-->
<?php include_once $config ['client_theme_path'] . $config ['client_theme'] . '/footer.php'; ?>
